package com.wuliu.system.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.wuliu.system.mapper.BasNoCounterMapper;
import com.wuliu.system.domain.BasNoCounter;
import com.wuliu.system.service.IBasNoCounterService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 单号流水计数器Service业务层处理
 * 
 * @author realue
 * @date 2023-10-24
 */
@Service
public class BasNoCounterServiceImpl extends ServiceImpl<BasNoCounterMapper, BasNoCounter> implements IBasNoCounterService {
    @Resource
    private BasNoCounterMapper basNoCounterMapper;

    /**
     * 查询单号流水计数器
     * 
     * @param id 单号流水计数器主键
     * @return 单号流水计数器
     */
    @Override
    public BasNoCounter selectBasNoCounterById(Long id) {
        return basNoCounterMapper.selectBasNoCounterById(id);
    }

    /**
     * 查询单号流水计数器列表
     * 
     * @param basNoCounter 单号流水计数器
     * @return 单号流水计数器
     */
    @Override
    public List<BasNoCounter> selectBasNoCounterList(BasNoCounter basNoCounter) {
        return basNoCounterMapper.selectBasNoCounterList(basNoCounter);
    }

    /**
     * 新增单号流水计数器
     * 
     * @param basNoCounter 单号流水计数器
     * @return 结果
     */
    @Override
    public int insertBasNoCounter(BasNoCounter basNoCounter) {
        return basNoCounterMapper.insertBasNoCounter(basNoCounter);
    }

    /**
     * 修改单号流水计数器
     * 
     * @param basNoCounter 单号流水计数器
     * @return 结果
     */
    @Override
    public int updateBasNoCounter(BasNoCounter basNoCounter) {
        return basNoCounterMapper.updateBasNoCounter(basNoCounter);
    }

    /**
     * 批量删除单号流水计数器
     * 
     * @param ids 需要删除的单号流水计数器主键
     * @return 结果
     */
    @Override
    public int deleteBasNoCounterByIds(Long[] ids) {
        return basNoCounterMapper.deleteBasNoCounterByIds(ids);
    }

    /**
     * 删除单号流水计数器信息
     * 
     * @param id 单号流水计数器主键
     * @return 结果
     */
    @Override
    public int deleteBasNoCounterById(Long id) {
        return basNoCounterMapper.deleteBasNoCounterById(id);
    }
}
